package arithmetic2.day06;

public class Test2 {
    public static void main(String[] args) {
        Node node1 = new Node(5);
        Node node2 = new Node(4);
        Node node3 = new Node(6);
        Node node4 = new Node(4);
        Node node5 = new Node(5);
        Node node6 = new Node(5);
        Node node7 = new Node(7);
        node1.leftChild = node2;
        node1.rightChild = node3;
        node2.leftChild = node4;
        node2.rightChild = node5;
        node3.leftChild = node6;
        node3.rightChild = node7;
        BinaryTree binaryTree = new BinaryTree(node1);
        System.out.println(binaryTree.isBST(node1));
    }
}
